home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 5380 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.2 KB  |  32 lines

  1. Newsgroups: comp.lang.c++
  2. Path: netcom.com!milyng
  3. From: mikael@pobox.com (Mikael Lyngvig)
  4. Subject: Re: Linking LIBs
  5. Message-ID: <milyngDM8In2.KLu@netcom.com>
  6. Sender: milyng@netcom9.netcom.com
  7. Organization: Hacker's Paradise, Inc.
  8. X-Newsreader: WinVN 0.99.7
  9. References: <4ee2ta$6b3@masala.cc.uh.edu>
  10. Date: Sun, 4 Feb 1996 04:47:26 GMT
  11.  
  12. In article <4ee2ta$6b3@masala.cc.uh.edu>, txs53132@bayou.uh.edu says...
  13. >
  14. >     I just started linking LIB files to my projects (TC++ 3.0).  The 
  15. >programs work fine in TC, but I have a problem when they are run from 
  16. >DOS.  After execution, the memory allocated for the program doesn't seem 
  17. >to be freed.  Before execution, I have about 600k conventional memory 
  18. >left.  After execution, I have about 160k (not enough to even run TC 
  19. >again).  How do I stop this?
  20.  
  21. Phew!  That sounds obscure :)  I have no real idea why this is, but would like 
  22. to suggest that you start with something simple and increase the complexity 
  23. only when it works.  First try to compile and link a single .C file (don't 
  24. use any external functions).  Then try to modules, then try to add a library. 
  25.  
  26. My best bet is that you're somehow getting the wrong startup code linked in.  
  27. What you are explaining shouldn't be doable (unintentionally, that is).  
  28.  
  29.  
  30. Mikael
  31.  
  32.